minios: grant table map (gntdev) bug fixes
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 16:34:50 +0000 (17:34 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 16:34:50 +0000 (17:34 +0100)
commitae41a026ab89f2c8484851d341924e41a0106764
tree2ba6d226a6b92855a8fb0f5e6f1a7b492b4cddc1
parentb45184b0fc91b9acd1a6683851cefcfce081d93e
minios: grant table map (gntdev) bug fixes

 * Uninitialized dev_bus_addr argument to GNTTABOP_unmap_grant_ref
   results in an angry hypervisor.
 * Set errno in libxc and return -1 on error.
 * op.status is a int16_t, so it should be printed with PRId16.
 * Don't print domids[0] or refs[0] if the ptr is NULL. It's more
   polite to crash later, after the message has been printed.

Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
extras/mini-os/gntmap.c
tools/libxc/xc_minios.c